package com.jumi.microservice.enumerate;

import com.jumi.microservice.common.base.dto.AbstractEnum;
import com.jumi.microservice.common.enumeration.IResponseEnum;

/**
 * @author scw
 * @date 2020/9/29
 */
public enum InvoiceStatusEnum implements AbstractEnum<Integer> {
    /**
     * 发票状态
     */
    STA_WAIT_BILLED(0, "待开票"),
    STA_HAS_BILLED(1, "已开票"),
    STA_WAIT_CORRECTED(2, "待更正"),
    STA_HAS_CORRECTED(3, "已更正"),
    STA_WAIT_REDDDMED(4, "待冲红"),
    STA_HAS_REDDDMED(5, "已冲红"),
    STA_CANNOT_BILLED(6, "不可开票"),
    INVOICE_FAILURE(7, "开票失败"),
    RED_INVOICE_FAILURE(8, "冲红失败"),
    NO_INVOICE(9, "已取消");

    private Integer code;
    private String message;

    public String getMessage() {
        return message;
    }

    InvoiceStatusEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }


    public void setMessage(String message) {
        this.message = message;
    }
}
